<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>The DeviceAtlas UserAgent Features Adapter - Zend Framework Manual</title>

    <link href="../css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="../css/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <link href="../css/styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Zend Framework</h1>
<h2>Programmer's Reference Guide</h2>
<ul>
    <li><a href="../en/zend.http.user-agent-features-device-atlas.html">Inglês (English)</a></li>
    <li><a href="../pt-br/zend.http.user-agent-features-device-atlas.html">Português Brasileiro (Brazilian Portuguese)</a></li>
</ul>
<table width="100%">
    <tr valign="top">
        <td width="85%">
            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.http.user-agent-features-wurfl.html">The WURFL UserAgent Features Adapter</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.http.html">Zend_Http</a></span><br />
                        <span class="home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.http.user-agent-features-tera-wurfl.html">The TeraWurfl UserAgent Features Adapter</a></div>
                    </td>
                </tr>
            </table>
<hr />
<div id="zend.http.user-agent-features-device-atlas" class="section"><div class="info"><h1 class="title">The DeviceAtlas UserAgent Features Adapter</h1></div>
    

    <div class="section" id="zend.http.user-agent-features-device-atlas.intro"><div class="info"><h1 class="title">Overview</h1></div>
        

        <p class="para">
            <a href="http://deviceatlas.com/" class="link external">&raquo; DeviceAtlas</a> provides a comprehensive mobile
            device database, in editions ranging from free to enterprise level. The databases
            provided with all editions utilize the same API, which is shipped as part of the
            DeviceAtlas offering. This particular features adapter interacts with the DeviceAtlas
            API in order to return device capabilities.
        </p>
    </div>

    <div class="section" id="zend.http.user-agent-features-device-atlas.quick-start"><div class="info"><h1 class="title">Quick Start</h1></div>
        

        <p class="para">
            You will first need to download the DeviceAtlas PHP API, available via their <a href="http://deviceatlas.com/downloads" class="link external">&raquo; downloads</a> page. Unpack this into your
            library, and make note of the directory in which it resides.
        </p>

        <p class="para">
            From there, you may optionally desire to download one of the DeviceAtlas databases; see
            their site for details. When you do, make sure you make note of where the data file
            resides.
        </p>

        <p class="para">
            Once you have this information, you may configure
            <span class="classname">Zend_Http_UserAgent</span> to utilize it. The easiest way is through
            your application configuration.
        </p>

        <pre class="programlisting brush: ini">
resources.useragent.deviceatlas.deviceatlas_lib_dir = APPLICATION_PATH &quot;/../library/DeviceAtlas&quot;
resources.useragent.deviceatlas.deviceatlas_data = APPLICATION_PATH &quot;/../data/DeviceAtlas/json/DeviceAtlas.json
</pre>

    </div>

    <div class="section" id="zend.http.user-agent-features-device-atlas.options"><div class="info"><h1 class="title">Configuration Options</h1></div>
        

        <dl>
<div class="info"><h1 class="title">DeviceAtlas API Options</h1></div>
            

            <dt>

                <dt class="term">deviceatlas.deviceatlas_lib_dir</dt>

                <dd>

                    <p class="para">
                        If using the DeviceAtlas API, use this key to specify in which directory the
                        library exists. If the <span class="classname">Mobi_Mtld_DA_Api</span> class is
                        autoloadable, you may omit this setting.
                    </p>
                </dd>

            </dt>


            <dt>

                <dt class="term">deviceatlas.deviceatlas_data</dt>

                <dd>

                    <p class="para">
                        If using the DeviceAtlas API, use this key to specify the location of the
                        data file you will use.
                    </p>
                </dd>

            </dt>

        </dl>

    </div>

    <div class="section" id="zend.http.user-agent-features-device-atlas.methods"><div class="info"><h1 class="title">Available Methods</h1></div>
        

        <dl>

            <dt id="zend.http.user-agent-features-device-atlas.methods.get-from-request">
                <dt class="term">
                    <div class="methodsynopsis dc-description">
                         <span class="methodname">getFromRequest</span>
                        <span class="methodparam">( 
                            <code_funcparams class="funcparams">array $request, array $config</code_funcparams>
                         )</span>
                    </div>

                </dt>

                <dd>

                    <p class="para">
                        Decompose the request in order to return an array of device capabilities.
                    </p>
                </dd>

            </dt>

        </dl>

    </div>
</div>
        <hr />

            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="zend.http.user-agent-features-wurfl.html">The WURFL UserAgent Features Adapter</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="zend.http.html">Zend_Http</a></span><br />
                        <span class="home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="zend.http.user-agent-features-tera-wurfl.html">The TeraWurfl UserAgent Features Adapter</a></div>
                    </td>
                </tr>
            </table>
</td>
        <td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
	float: left;
	width: 186px;
	padding: 5px;
	font-size: smaller;
}
ul.toc {
	margin: 0px 5px 5px 5px;
	padding: 0px;
}
ul.toc li {
	font-size: 85%;
	margin: 1px 0 1px 1px;
	padding: 1px 0 1px 11px;
	list-style-type: none;
	background-repeat: no-repeat;
	background-position: center left;
}
ul.toc li.header {
	font-size: 115%;
	padding: 5px 0px 5px 11px;
	border-bottom: 1px solid #cccccc;
	margin-bottom: 5px;
}
ul.toc li.active {
	font-weight: bold;
}
ul.toc li a {
	text-decoration: none;
}
ul.toc li a:hover {
	text-decoration: underline;
}
</style>
 <ul class="toc">
  <li class="header home"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></li>
  <li class="header up"><a href="manual.html">Guia de Refer&ecirc;ncia do Programador</a></li>
  <li class="header up"><a href="reference.html">Refer&ecirc;ncia do Zend Framework</a></li>
  <li class="header up"><a href="zend.http.html">Zend_Http</a></li>
  <li><a href="zend.http.client.html">Introduction</a></li>
  <li><a href="zend.http.client.advanced.html">Zend_Http_Client - Advanced Usage</a></li>
  <li><a href="zend.http.client.adapters.html">Zend_Http_Client - Connection Adapters</a></li>
  <li><a href="zend.http.cookies.html">Zend_Http_Cookie and Zend_Http_CookieJar</a></li>
  <li><a href="zend.http.response.html">Zend_Http_Response</a></li>
  <li><a href="zend.http.user-agent.html">Zend_Http_UserAgent</a></li>
  <li><a href="zend.http.user-agent-device.html">The UserAgent Device Interface</a></li>
  <li><a href="zend.http.user-agent-features.html">The UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-features-wurfl.html">The WURFL UserAgent Features Adapter</a></li>
  <li class="active"><a href="zend.http.user-agent-features-device-atlas.html">The DeviceAtlas UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-features-tera-wurfl.html">The TeraWurfl UserAgent Features Adapter</a></li>
  <li><a href="zend.http.user-agent-storage.html">The UserAgent Storage Interface</a></li>
  <li><a href="zend.http.user-agent-storage-session.html">The Session UserAgent Storage Adapter</a></li>
 </ul>
 </td>
    </tr>
</table>

<script type="text/javascript" src="../js/shCore.js"></script>
<script type="text/javascript" src="../js/shAutoloader.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

</body>
</html>